kern_timestamp

Section: System Calls (2)
Updated: March 24, 1989
Index Return to Main Contents
 

NAME

kern_timestamp  -  return (machine-dependent) timestamp
 

SYNOPSIS

#include <sys/time_stamp.h>

kern_return_t kern_timestamp(struct tsval *tsp)
 

ARGUMENTS

tsp
pointer to a struct tsval to receive the timestamp.

 

DESCRIPTION

kern_timestamp() obtains a current low-overhead timestamp from the kernel.

 

DIAGNOSTICS

KERN_SUCCESS
The timestamp has been returned.

KERN_INVALID_ADDRESS
tsp doesn't point to valid user memory.
 

BUGS

Availability limited. Timestamp format is machine-dependent; the value of the symbol TS_FORMAT must be saved for convert_ts_to_tv(). Multimax timestamps are subject to rollover on an hourly basis (2^32 usec). Timestamps on most other systems have a granularity of 10ms.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
DIAGNOSTICS
BUGS

This document was created by man2html, using the manual pages.
Time: 17:22:48 GMT, March 25, 2025